package com.bjpowernode.test08;

public class Test {
    public static void main(String[] args) {
        Product[] products = new Product[3];
        Product fru = new Product("水果",001,123.4);
        Product tre = new Product("果树",002,185.4);
        Product cak = new Product("蛋糕",003,456.4);

        products[0] = fru;
        products[1] = tre;
        products[2] = cak;

        BuyCar buyCar = new BuyCar();
//        buyCar.printPro(products);

        Product[] products1 = buyCar.addPro(products,new Product("河南",004,111.2));
//        buyCar.printPro(products1);

        Product[] product2 = buyCar.delPro(products1,tre);
        buyCar.printPro(product2);


    }
}
